let proxy = require('http-proxy')
let proxyServer = proxy.createProxyServer()
let http = require('http')
// 正向代理

let server = http.createServer(function(){
    proxyServer.web(req, res, {
        target: 'http://localhost:9000'
    })
}).listen(8000)